package com.qf.hospital.enums;

/**
 * @author ASUS
 * @version V1.0
 * @Project hospital
 * @Package com.qf.hospital.enums
 * @Date 2021/10/15 15:31
 */
public enum HospitalExceptionEnums {

    USERNAME_PASSWORD_ERROR(666,"用户名或密码输入错误"),
    REQUEST_PARAMETER_ERROR(400,"请求参数错误"),
    USER_HAS_EXPIRED(888,"用户已经失效！"),
    USER_ADD_ERROR(777,"添加用户信息失败！"),
    USER_UPDATE_ERROR(776,"修改用户信息失败！"),
    USER_DELETE_ERROR(775,"删除用户信息失败！"),
    PASSWORD_RESET_FAILED(774,"重置密码失败"),
    USER_SAVE_USER_ROLE_ERROR(778,"分配用户角色信息失败！"),
    ROLE_UPDATE_ERROR(766,"修改权限失败！"),
    ROLE_INSERT_ERROR(767,"添加权限失败"),
    ROLE_DELETE_ERROR(765,"删除权限失败"),
    ROLE_SAVE_ROLE_MENU_ERROR(758,"分配菜单失败"),
    MENU_ADD_ERROR(757,"添加菜单失败"),
    MENU_UPDATE_ERROR(756,"修改菜单失败"),
    MENU_DELETE_ERROR(755,"删除菜单失败");

    private Integer code;
    private String msg;

    HospitalExceptionEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
